﻿using Abp.Extensions;
using Abp.Runtime.Validation;
using Magicodes.Plus.Application.Dto;

namespace Magicodes.WeChat.User.Dto
{
    public class GetWeChatUsersInput : PagedAndSortedInputDto, IShouldNormalize
    {
        //public DateTime StartDate { get; set; }

        //public DateTime EndDate { get; set; }
        public void Normalize()
        {
            if (Sorting.IsNullOrWhiteSpace())
                Sorting = "CreationTime DESC";
        }
    }
}